Fixed a bug in the parsing of arguments, added a unit test project.