parser grammar outsourced
package and namespace structure refactored
tests for basic functions added