Minor bugfix in determine_alphabet()
Added includes and removed main()
Re-introduced check-tests to build script