Fixed some issues that SonarQube detected.
Merge pull request #10 from codecentric/feature/sonar

Fixed some issues that SonarQube detected.
Issue #8: Added support for variable substitution.
Issue #8: Improved documentation, error handling and code analysis issues.