Started refactoring
Added clean graph for debugging beat detection