Gracefully exits if user doesn't input a command line argument

Also added prototypes for Matlab file (still need a lot of work)