Corrected constructing p-adic number from digits sequence. Also, some code refactoring.
Some code refactoring. No functionality changed.
A few tests added.