delete example code from main file
add mandatory parameters check