Committ functionality added to new post

Commits are now part of the post object, drawing function has not been
changed yet though.  Also the file has been cleaned up a little.