added more comments about the functions in these classes