Bug fixes, simplified saveProfileLInes method