Added command line run and other changes

1.Added compiler flag to run without GUI
2.Updated prtdbl method of NDTUtils