Added sorting by status and updating status of packages functionality, made minor formatting changes