Started to implement detection algorithms
First working prototype!
Merge pull request #2 from Recluse58/KApi

K api