Added comments and split functionality in seperate functions
Added comments and split functionality in seperate functions

Karel-van-de-Plassche/QLKNN-develop,Karel-van-de-Plassche/QLKNN-develop,Karel-van-de-Plassche/QLKNN-develop