some changes to swing module plus added animation example