Added build files, improved command line processing