Added documentation and updated test structure.