add upscale functionality and bug fixes

add upscale functionality
fix bugs in getting the instances information
Merge pull request #23 from alal3177/upscale_and_clean_up

add upscale functionality and bug fixes