cleaned up code to make compiler happy
added gitignore