Implemented global settings
Improved examples