Move profile module into discrete directory. Add header comments to files.

Just a bit of housekeeping. No actual code changed.