Extended documentation and few style fixes.