Added appledoc rake tasks and cleaned up the documentation in the header so it no longer generates warnings.