Updated property code and added some documentation to it.