Added comments

Added detailed comments for all of the methods for documentation