removed repetitions in reading from file and comments redone in unixy style

this is the stuff we've been chatting about @pote - removed double reading from file, simplified comments with actual support for comments at any place.