Added documentation to funcmacro and executable, added history support for input quantities