Combined setup functions to a single init. Started work on testvector generation function.