adding support for prettyprinting, source command now takes parameters: start and end