Updated documentation; didn't know that objects are essentially passed by reference automatically.