update docopt and fix code according to the latest rust version