added environment variable to specify path to dat
updated