Improved documentation significantly