finished reimplementation of basis.jl under new system, might play around with it some more though