Added a test for the main program (checking md5 checksum of generated file). Added capability of running with two parameters (-outputfile and -dbfile).