Added test areas. Added legal information. Performance optimization.