pass in arguments to constructor to init function

closes #6