cleans out comments, and sets associated factory to random number