added input to core, a few other tweaks
added examples