Implemented arguments processor.

Needs unit tests though.  I didn't set up unit tests in the build file yet.