Commit changes.

CHanged tolerance to reflect machine epsilon more accurately.

Created some structures, and modified algorithms.