reformatted some code
Added notices and alerts
Moving getTypeString out of helper and into model, along with previous commit