Remove unused libraries
Use command line arguments