added command line code input and a freeArray function