Added functional lib, small changes
some gl stuff