Fix all deprecated warnings, closes #11