Wig: reshape whole API and add documentation (#41)