Refactored parsing lengths, and paths. Changed getlog length to char[3]