1st
2nd enh working
Renamed inframe to frame. Got rid of outframe
This commit actually does what the previous one was supposed to do.
minimal cleanup
working enh1,2
Enhancement 3 & 4 re-implemented
Minor cleanup
Reimplemented Enhancement 6
Merge branch 'cleanedcode'