added config file and started to implement  main entry point