metagene class fixes and documentation