Moved comments to header. Also added a few functions.

New functions don't do anything yet, currently empty.