converted to module, licence added
updated dir structure