Fixed some variable naming
Fixed up the dependencies
started documentation