Added in-line documentation.