Added javadocs and changed beat time from 2 seconds to 1