Added comments and method description