Dear Andrew,
Yes, that would be an appreciated contribution.
The best way is to post the files contributed to the patch tracker [1]. Try to follow the programming [2] and documentation [3] syntax conventions we like to use. However, people can fix that for you, so don't worry too much about it initially. It's also important to include unit tests [4] so that users can verify that your program works as intended.
Thanks!
Nir