Final prototype

Optimized the software