included history checking, doubtful if of any use
added .gitignore
added comments