Addition of strlen() and some bug fixes. Still to be
tested on Linux host OS.