optional active item; errors, minor fixes

optional nav. active item setting,
error handling,
bug fix,
minor changes
error templates moved
bug fixes
copyright added
changes related to deployment
changes related to deployment II