Added scaladoc comment and corrected alignment