Added more Javadocs to the project and modified existing ones to
correctly work as intended.