Implementation basics

I went through a large amount of the smaller functions and gave them
implementation. minimal testing, it's not compiling currently