implemented improvements and wav playing