Removed ignord files and fixed memory leaks + added usage of vectors.