Add rendering system. Fix Bugs.