Added ref counting, and some convenience methods to MemoryAdress