added var categorization in parsing.jl
started to use module instead of functions, WIP