Added admin interface and misc enhancements. Fixed some bugs.