updated codebase to include better rendering etc, added rendering class