Refactored directory layout.
Updated documentation.