Small updates

actually putting work into the code instead of pseudocoding all the
time. -_-