added gitignore list
cleanup
fixed a minor bugg