added a l2 norm penalty (doesn't work yet) and added delete methods for all classes