Added some phpDocs and doing some housekeeping.