Added test to ensure documentation examples are syntax-correct.
Fixed syntax errors in documentation examples.
Specify 5.4 as the minimum version for the docs tests.
Merge branch 'master' into 1.0