added css, added close function, added inline documentation