Improved gencat.sh. Closes #11