added more to support put, get, post, delete

Added full functionality (in theory) to the file.