added bracket parsing
added parsing support for nested brackets
reworked parsing code for better extensibility, reworked number parsing to rely less on whitespace