Added documentation to procedures