added math lib to dependencies
will take device name from command line args
fixed error in buffer size