Added method to change length of plain_text
Added method to change length of plain_text
Added method to change length of plain_text
Added some memory management