Corrected the removeProp() function and fixed up some other stuff.