closes #10 added proper configuration parsing to script