adding git ignore and more cleanup
cleaned up and commented code, few bug fixes, updated readme