General cleanup, added some comments.
Added Copyright header.
Authored by: divye 2008-09-02
Parent: [r79]
Child: [r81]