added documentation structure
changed library interface