refactor: added history; removed unused code
refactor: spec output reads well