embed.py now functional + L1/L2 regularization options