added doesRepeatForever, changed formatting
fixed #25