cleaned up some code and added smarter editor