parse environment and add env variables to the kenv struct passed to the entry function; add example code to testbin showing use of kvars