-fixed header -removed all locallay defined varibales/functions which have proper includes -use variable names not arguments -removed deprecated build_rmtimestamp function