added doxygen comments for the scriptengine