added ios simulator
promote functions to root
rename smartextract
bunch of stuff