add check for trailing slashes, remove unnecessary code
update dist
version bump