add GNU license and clean up

Signed-off-by: Grarak <williye97@gmail.com>