initial commit, partial work
initial commit, partial conversion to sage