fixed error

- somehow the variable declarations at the top were duplicated and
  /or kind of pasted into itself. I have deleted the redundant lines
  and made sure everything works.
- deleted some blank lines.

Signed-off-by: William Rockwood <wrockwood@tadl.org>