Added bitdepth module

A few other unimportant changes.