Improvements

Minor improvements to the engine and documentation.