Added more method code and updated code comments.