fix setting of the program name
fix missing arg in $.pyref
allow referencing modules by name
add some basic documentation