0.4 first commit. Added update functions