Clean ContinousBpe code and add documentation.