add header and footer
remove some pointless tests for altering notes
convert all to haml