Added rounding and fixed attachment coef

Attachments are now working (+2 per file) 
Rounding is using $modulo parameter