Added library for parsing parameters. Now resizes to four different sizes, which can be specified in parameters.