fixed tests that failed after randomisation of input values. also did some small bug fixes
updated gitignore file