rearranging functions
using getK more often
bumping version for code fixes