improved findByUsername middleware
Improved findThread middleware
refactored app.param
changed comment creation route