Created by: rileyp2000
added a number of functions, all of which are hopefully tested in the debug method