Added functionality to be able to write a BitStream to a FileStream without having to do the leg work