Formatted and added documentation