Output works!
More error handling
Fixed style errors