Merge pull request #5 from galic/master

fixed some bugs
Fixed quote method, adding NULL handling
Fixed error in save method.