The project started as a quick & dirty prototype to check the feasibility. A refactoring of the code to make it more maintainable would be advisable.