base level clean up of code.

these are the scripts you need to run to get substrate going