I didn't know this about admin accounts. Firewall is on firmware password is on I may have to format the hard drive. The part I don't understand is how the shared services were switched on. Lets say for argument sake my computer was being shared and remote access was on can anyone just connect to my computer? Or do they need my password to connect to my files and see what i'm seeing? Thanks for the above info its very helpful.
I would never allow remote access to my mac, and don't know anything about it.
If you rebuild your machine from scratch, i.e. format your HDD and install a clean copy of macOS, then all of your concerns are a moot point.
That, and moving forward, making sure you do everything I said above, and you make sure that other people don't have easy physical access to your machine - although a firmware password should mitigate that risk mostly.
If you would learn how to make a bootable USB installer, you could have fixed this problem in the time you've been posting here. (Reconfiguring your apps and migrating data could take longer, though.)
Turn the page and rebuild your amcine is my advice. (And make sure to use a modern macOS because that matters too.)