changed some of functions to my own previously written ones. Fixed some issues with the l command