Regarding distance from main dwelling to secondary dwelling (granny flat), the Building Code is quite clear- it's 1.8m. If, though, you can provide a fire-rated wall to any walls breaching this zone, you can get as close as you want.
Regarding additional floor space making the granny flat...