adding refresh event for layers
adding length property for objects
normalizing method 'add' for layers
updating examples