Moved errors to their own file, made them fit together better