Added some source length rules

max number of lines in class etc