Fixed random NULL

Makes sure the error is not null
Removed typehinting from handleException

Tried to fix it with \int and \string, but this did not work.
added gitignore
Merge pull request #5 from dododedodonl/beta

Random NULL and errorHandler