-a and -l commands now working properly. Inputs are taken from command line now.