Add modularity to the project.
Added API documentation for project.