Remove warnings

This pull request addresses issues #260 and #261; some warnings remain, mostly because of cython.