checking parameters
added genre support
algorithm is online
A little code cleanup