added funciton to show processes sorted by memmory usage
generalized initialization and activate script