added test app; improved documentation