Finised self tests, added man pages