First commit, contains working debug branch forked from tmp branch on UCSC-IBM-POSRA