cleanup. Also added some helper functions to clean up code. Added pins strobing functions, etc