Cleaning up commented out code -- Adding minor documentation to functions