Fix some issues about the parsing of command line arguments and added the bstring library