Added option to automatically retry uploading. Added possibility to execute additional commands before and after uploading. Improved option handling, since avrdude accepts arguments with and without spaces.