Fix testcases generator script.
Fix a variet of code formatting issues.
Fix docopt macro invocations (from recent changes to macro syntax).
0.6.16