basic io and back bone done.

what's left is just interface