Improved comments and removed an unused API function.