Implementation of source code

Fork of version 1.0 by Antonios Garas