fixes #26; fixes small bug on line 71 (changes %S to %s)