Add two demo files for reference, add pause support for Wave.java