Understanding The Formation Of Surface-Supported Molecular Nanostructures