Improved documentation, made warnings and errors optional.