Changed makefile. Now binaries are built in bin/ folder
added command line options parsing with getopt. Updated error checking