Merge pull request #60 from kinghajj/fixes

Fixes for recent API and language changes.
Fix testcases generator script.
Fix a variet of code formatting issues.
Fix docopt macro invocations (from recent changes to macro syntax).
0.6.16
depend on crates.io regex