modified leia function to take in parser
Merge branch 'master' of https://github.com/katadh/leiaS14