Implemented peak detection algorithm and expanded the infrastructure. Added tests and empty sample app.