added parameter checks
on the fly now working with according tests
more documentation stuff