Fixed some issues and added threaded script, updated readme.