Using logging for all classes

This commit wraps all the main classes in a self executing function
and adds a log for each.
Fixed logs by making sure new logs added to array