added test case for ffti and fixed the ametureish indexing bugs that I created