fixed syntax errors in Ab.java
fixed some more errors in Ab.java
higher order bits behaving badly in evaluation