fixed a bug (MAXN -> MAXM)
add the recommend that the charactermust be greater than 0