Cleaned up views, refactored all parameter processing into decorators, improved input validation, added test cases.