modified the L1 norm function and an input file