Refactored code into src, lib, build, target and release directories