some minor changes in basic functions, tests with nose went fine