work on documentation

also, try out branching
make code more readable, documentation
printFig
doc
Merge remote-tracking branch 'origin/doc'