Added more documentation, testing file