Added documentation to source