updated tests and finished main structure for library, moved to default