Added documentation to key areas