Variable naming fixes. Added option for storing data as unsigned or not.