Ignored some ide files
Changed shown image index array to use int32. Changed generate__K__ to use 3D indexing. May not be a good idea overall but it works.
Small code cleanups