Refactor the Args class.

- Use get* and set* methods instead of jquery style accessors.
- Fix some doc blocks.