added additional command line options
updated to version 0.2; added more comments