Update logosol.py

Added comments and cleaned up struct.