added ability for 2nd encoder
pep8 fix in __init__