Correct the 2*pi and 1/2 factors
Use proper length
Use L as the length of the box
Remove stop