Granularity added

Whats left :
1. Dimension check in gran.
2. pref.
3. unroll