Initial commit from BitStream. Added functionality (currently untested)

Signed-off-by: AireL <tomma2008@hotmail.com>