Edited ast

Changed some of the types and organization (double to float, added bg_t
to hold each individual type). Trying to figure what goes in ast vs
sast.