Various changes and fixes

Signed-off-by: Matthew Schick <matthew.schick@gmail.com>