Added five pixels of margin to button class
Added support  to changes of types and positions
Implemented property to ensure than modal box will be invisible and implemented the classes 'show' and 'hide'
Fixed bugs in the functions : afterClose, afterOpen, setType.
Refactored the demo page