removed bzip code
replaced a lot of puts with an array lookup