change error() usage to System.err
fix parse errors. remove MP.java