basic error handling, improved gitignore and readme