adding removal of ruby magic comments, etc