renamed things: xig data data_type
cleaned up parser a bit
function overhaul