added comment to top of int main for containers
added some fixes to functions