add tests
add test
fix print error
fix counting newlines
parse bitstring literal