format and removal of comments