Added build task for phpDoc (but put the docs folder on the ignore list for now - will change that come version 1.0).
Added some more documentation and a test.