more fixing error checks
added gitignore file