fixed some bugs
added git ignore