re-worked file layout to allow for a static library "core" to be unit tested.