wrote divide tests and fixed divide implementation, resolves #30