added method for dynamicall fragment size manipulation, fixed small bugs