Fixed vs2013 compatibility with cmath. Changed behavior of play and directory buttons to handle files and directories differently.