converted to module; added implementation
readme formatting