nick - final modifications to template; should be completely working now.