Removed duplicate errors, fixed documentation