Fixed bug in wave generator (changed datos a D) and removed a lot of 360 literals (better to use a variable).