added tests and files
added parsing of weight line entry