fully functional minus plotting features

of course, there may still be bugs.