fix problem of layout in iOS6
seperate Documentation class as another file
move make-cache function to the Documentation class