bits and pieces 2
final produciton run codebase
fixed random errors