Set default paramaters for 'autostart' and 'repeat' to 'false'
Improved code appearance and style