Added doc attribute for documentation to Rule and Terminal
Added Two's Complement support