Working with josh @ his house 2012-12-18

Changed the way tmp handles defaults internally, made some conversion
functions. (not fully working yet).