Small bugs fixed

What he said.
Updated gitignore

What he said.