Updates to package functions' methods

Including tests. Can be checked via
julia runtests.jl
in the test directory.