Corrected the handling of wavevectors and optimized what I could
Smarter angular gradient measurement
Changed html page to index for easier deployment
Added quick explanation to the code in the README