A#2.1

Added comments explain what the functions do.