Cleaned up a lot of code. Added 405 (method not supported)