Introduce restrictions of parameters
Add normality test and update code to lates julia changes