initial code commit. functional, but not feature complete or fully tested