Fixed whitespace

Signed-off-by: Jacob McGladdery <jacobm117@gmail.com>
Fixed whitespace and one possible bug

Added a mask needed for pad output.

Signed-off-by: Jacob McGladdery <jacobm117@gmail.com>