finalised the core render engine

renamed and optimised