fixed empty string parsing
added arrays
various bug fixes