added proper sh comments as per suggestion by @simonwheatley