Fixed formattings and added doc.