set input test to off..
moved example code form unit test to its own folder
Made the main() a bit nicer

Added error handling for bad files
Added so you can pipe stdin to execute it