New function + better function handling

-Added initial implementation function “which_libs” that detects valid
libraries if available
-Function “check_args” now properly detects arguments