remove alerts for debugging and add documentation