save function started - fixed bug with __get / __set