Layered file that I can import to and from Photoshop/GIMP?

This is awesome, but I’m having some trouble making it work!

Downloading the script from github, I get this error "7:unexpected symbol near ‘<’ "
Both lua files on the site give me this error.

Bu using the link of the revision @JJHaggar sent in case we had problems opening the exported file, I can create a psd without errors, but ironically, I have problems with the exported file. Photoshop won’t open it.