.functions
+ added printpath function for showing PATH in readable form