Some machines don't know about M_PI, wouldn't compile
Fix intermittent crash on increase width
Better error handling & messages