Reformatted code, made links clickable