Updated comments and added hinting on one function.