added code to render mopb spawning

Also the complete render code is now structured with comments. And the use of convenience access methods makes the code more readable.