purchase logging
luckyfixes, some work on statements
Merge remote-tracking branch 'origin/master' into gh-pages