Fixing errors and .ignore file