added Parser constructor & few methods

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>