Loop unroll tests and bugfixes, removed __init__.py from main directory so nosetests works.