basic functions work

this is more like version 0.1