export complete. added MAX_HISTORY_LENGTH definition to param.h