Clean up of posts code style and comments