main redesign and some formating changes

 Thy code be running off old database riggings' because of dem pesky pg errors'.