Commenting and more fixes

Documented what all the engine does and fixed dodgy non declaring
bounding box