Remove random exit(3) from eof
Try using trollop instead of main for options

Currently only checking for switches.