Initial commit

splitted from FBVLC, and some improvements added.