parse config file add try catch
bugfix
Better document