Support multiple configuration files and targets
Remove dead code, make code more idiomatic, and improve style
Merge pull request #4 from pauldraper/master

Support multiple configuration files and targets