Change history macro to history library function
Merge branch 'units' of https://github.com/OpenACCEL/OpenACCEL into units