Fix bug at WRTF handler
Fix bug in getting message
Add REPF command
Add support for REPF command
Correcting code