cleaned up code and started renderer code