remove debug messages
fix bugs, remove debug outputs
fix bugs in NS-ICA2
fix bugs in angle calculation

take absolute to prevent complex numbers