bug fixes and code refactoring. also added Sub-telegraph bits, but they don't work.