added better command line switch functionality and the outline of a test mode
updated README with instructions on how to use command line switches