removed unused code
updated function docs to coding standards