Updated for windows

Modifications to nested classes, private functions, nested functions,
and added if name == main statement.