fix: error_reporting level fixed, add: main logic part wrapped into standalone function, change: markup changes