templates and functionality

Templates pretty much almost complete, most functionality ready to go.