Changed function comments to conform to PEP257

Moved comments under function header.