fixed bug in extend function for null, removed extra logging
fixed bug with extra sync properties
spaces to tabs