Expanded tests.
Can generate keys and use a keyfile and stuff.
Switched build to -O3 instead of -g and added build command to install script.