Added module as Python extension
Refreshed gitignore
Optimized and tidied up