Code cleanup. Adding and editing should now be fully functional.