Added declaration functionality and fixed array parsing. Note: REMOVED arrays of form a[] (i.e. nothing between brackets)