fix broken compatibility for lua 5.1.4
update gitignore
add some resources