added function to print source with line numbers