Bug fixes. Wrote lrs Wolfram Mathematica wrapper