Added git ignore
Fixed up the code smeller part and added some tests for it