Initial commit

Partially working, the detection algorithm is in development.