Added error formatting
Made a test, fixed a whitespace bug
Updated readme