Verilog Program

Create a circuit (a module) called ParityBuild. It takes a parameterized input that is n bits wide. The ParityBuild module then examines the input bit stream and determines the parity (use even parity). The output is a bit stream that is n+1 bits wide, with the parity bit appended as the MSB to the input stream. (Do not use any parity functions… write your own code to count the number of 1s. Is there an easy way to do this?). Simulate your design with at least three different input values to verify correct operation.

2. Relevant equations

None

3. The attempt at a solution

When I simulate the code, I get the output to replicate the entire input, but I cant seem to add the additional digit out front. When I simulate, the most significant bit is not assigned to anything. The following is the code that I did,

NOTE: I'm pretty sure the problem exists in line 18 and 27. The program is not assigning the bit values for what I want them to be.