Adding support for Appledoc

Adding support inside XCode for apple doc + adding some documentation
Adding some documentation

Add documentation and a little refactoring for naming convention