First joints, little bit of a cleanup, some documentation.