fixed wrong formats
fixed Packages method, added tests