Corrected bug in degree dist and changed files structure