Added more filter options

Filter based on genre, date or rating.
Added comments, cleaned code