added command line parsing

getopt is used to check for -i and -o flags
Merge branch 'master' of https://github.com/jrtobac/bitmappin