RNN-G: moved code into methods and notes into __init__.py