added close functionality
built dist version