refactoring; moved kpath point generation to new subroutine; refs #5