fixed testing tool
finished testing tool so far and made encryption less static