Added comments and finished.