added auxiliary sub, so devkeys do not need to be hardcoded. added vars for URL parameters
just the code from the tutorial