Updated code style, worked more on the atd and link modules