documenting and finally testing the engine classes