added object rendering and divided code to multiple mods