Used For debugging

.
Fixed a multitude of bugs

.