Project file cleanup
Bugfix: use unsigned long long for array indexing

Otherwise large arrays will break.