Rewritten to use libtgl
updated .gitignore