Better documentation; Fix code style.