Fixed syntax errors. #857
Introduced new get_recent_sales() method. #857