Changed document structure and added some docs!