added some testing and proper notes