A new open-source code for spherically symmetric stellar collapse to neutron stars and black holes | Synapse