Add the number argument on repeat()
Wrapper: Remove toArray()
Fix javadoc comments
Implement sum() and product()