Pinned requirements.
Fixed some errors introduced by an earlier commmit.