added specs
specs formatting and refactoring
refactoring
add a ~n to the end of the error messages
formatting
formatting
refactoring