Parser updates

Const math token values are properly handled now.
Added handler functions for every block type.