initial commit
older perl version compatibility; formatting improvements