updated licenses and fixed a few bugs

Signed-off-by: Caleb Cassady <psychotix@hotmail.com>