added Makefile
added reverse function