abstracted and commented
made status command fancy and working