fixed all warnings; set -Wall; changed alphabet to unsigned char*

For further refactorings I just cleaned up the warnings.