fixed source code errors and added play panned wrap