Modified documentation and code formatting; added additional test case.