Modified and fixed the code for the use of gaussian basian functions instead of fourrier approximation