corrected some stylistic issues.  Added support for big as well as little endianness.