Small changes of typos (do we really need signed chars?)
fixed use of bit operators; clean up source code