Make paragraph layer an integer

From what I've seen it makes more sense having paragraph layer being an integer. It also saves some dodgy checks and integer conversions along the line.