fixed parameters

query parameter was missing and updated portal parameter to be uniform
across functions
added completion message