Added and cleaned AppleDoc , general cleanup