Fixed bugs in customFrameBuilderModule, and cleaned code/comments

- trimed longitude string to remove leading spaces
- increased CUSTOM_FRAME_MAX_LENGTH to 100 bytes to avoid buffer
overflows
- removed unused commented code
- fixed some comments