Added command-line flag support, though not very satisfactorily
Track array sizes properly, added gitignore
Updated version