Added calculation for pressure AGL; added file writing