Fixed some bugs; just need to get PUT working properly now.