reorganized folder structure, added stack unit tests