Added prolog function
Change output method to plain text
Merge branch 'master' into ashish