Added main- function and configuration