added decode.sh, fixed a bug in a8freq.c