converted tabs to spaces; made sure that tests can be easily run