Added parameter checking to the bashfiles